import request from "./request";

//分页查询接口
export const getDoctorServiceTypeListAPI = (data) => { 
 console.log("请求参数",data);
  return request.post({
    url: '/serviceType/page',
    data
  });
};

/// 添加医生服务类型接口
export const addDoctorServiceTypeAPI = (data) => {
  return request.post({ url: '/serviceType', data });
};

// 修改医生服务类型信息
export const updateDoctorServiceTypeAPI = (data) => {
  return request.put({ url: '/serviceType', data });
};

// 删除医生服务类型信息
export const deleteDoctorServiceTypeAPI = (serviceTypeId) => {
  return request.delete({ url: `/serviceType/${serviceTypeId}` });
};